{% extends "blogs/base.html" %}
{% load bootstrap3 %}

{% block javascript %}
	<link 
    rel="stylesheet" 
    href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css"
    integrity=
    "sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" 
    crossorigin="anonymous"
  >
  <script 
    defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" 
    integrity=
    "sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" 
    crossorigin="anonymous"
  ></script>
  <script 
    defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" 
    integrity=
    "sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" 
    crossorigin="anonymous"
  ></script>
  <script>
	window.onload = function(){
		renderMathInElement(document.getElementById("md-body"))
	}
  </script>
{% endblock javascript %}

{% block header %}
	<h2><a href="{% url 'blogs:topics' %}">所有版块</a> - 
	<a href="{% url 'blogs:topic' topic.id %}">{{ topic }}</a> -
	<a href="{% url 'blogs:blog' blog.id %}">编辑Blog：{{ blog }}</a>
	</h2>
{% endblock header %}

{% block content %}
	<form action="{% url 'blogs:edit_blog' blog.id %}" method='post' class="form">
		{% csrf_token %}
		{{ form.media }}
		{{ form.as_p }}
		
		 <p><input type="submit" value="提交" class="btn btn-primary"></p>
	</form>
{% endblock content %}
